package com.shenmazong.serverwebpoem.controller;

import com.shenmazong.serverwebpoem.mapper.IDbPoetryMapper;
import com.shenmazong.serverwebpoem.pojo.TbPoetry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 田不平
 * @project server-web-poem
 * @date 2020/3/16 10:58 PM
 * http://www.shenmazong.com
 */
@RestController
public class TestController {


    @Autowired
    IDbPoetryMapper iDbPoetryMapper;

    @RequestMapping(value = "/test")
    public Object index() {
        TbPoetry poetry = iDbPoetryMapper.getPoetryByTitle("听雨");
        return poetry;
    }

}
